*"* use this source file for any type of declarations (class
*"* definitions, interfaces or type declarations) you need for
*"* components in the private section
    " 数据定义
    "获取token 请求参数
    TYPES: BEGIN OF t_appid,
             app_id     TYPE string,
             app_secret TYPE string,
           END OF t_appid.
    " 获取token 返回参数
    TYPES: BEGIN OF t_return,
             code(1)             TYPE c,
             expire              TYPE string,
             msg                 TYPE string,
             tenant_access_token TYPE string,
           END OF t_return.
    " 获取任务列表 请求参数
    TYPES: BEGIN OF t_task,
             approval_code        TYPE string,
             locale               TYPE string,
             order                TYPE string,
             task_start_time_from TYPE string,
             task_start_time_to   TYPE string,
             task_status          TYPE string,
           END OF t_task.

    " 获取任务列表 返回参数
    TYPES:BEGIN OF t_ins,
            code   TYPE string,
            status TYPE string,
          END OF t_ins.
    TYPES:tt_ins TYPE STANDARD TABLE OF t_ins WITH DEFAULT KEY.

    TYPES:BEGIN OF t_task_l,
            instance TYPE t_ins,
          END OF t_task_l.
    TYPES:tt_task_l TYPE STANDARD TABLE OF t_task_l WITH DEFAULT KEY.

    TYPES:BEGIN OF t_data,
            count     TYPE string,
            has_mor   TYPE string,
            task_list TYPE tt_task_l,
          END OF t_data.
    TYPES:tt_data TYPE STANDARD TABLE OF t_data WITH DEFAULT KEY.

    TYPES:BEGIN OF t_return1,
            code TYPE string,
            data TYPE t_data,
          END OF t_return1.

    " 获取实例详细信息 返回参数
    " t_ext 取财务相关审批的货币类型
    TYPES:BEGIN OF t_ext,
            currency TYPE string,
          END OF t_ext.

    "飞书各接口通用输出结构
    TYPES: BEGIN OF t_form,
             id    TYPE string,
             name  TYPE string,
             type  TYPE string,
             ext   TYPE t_ext,
             value TYPE string,
           END OF t_form.
    TYPES: tt_form TYPE STANDARD TABLE OF t_form WITH DEFAULT KEY.

    TYPES:BEGIN OF t_data2,
            approval_name TYPE string,
            status        TYPE string,
            form          TYPE tt_form,
          END OF t_data2.

    TYPES:BEGIN OF t_return2,
            code TYPE string,
            data TYPE t_data2,
          END OF t_return2.
